<%@ taglib uri="/WEB-INF/tld/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/tld/struts-bean.tld" prefix="bean" %> 
<%@ taglib uri="/WEB-INF/tld/c.tld" prefix="c"%>

<div>
	<ul id="pageList">
		<c:forEach var = "listElement" items = "${requestScope.newsPage}" varStatus="counter">
			<li>
				<a href="<c:url value="/ShowNews.do?page=${counter.count}"/>">${counter.count}</a>
			</li>
		</c:forEach>  
	</ul>

</div><br /> 
<c:forEach var = "listElement" items = "${requestScope.newsList}">
<table class="newsadmin">
  <tr class="newshead">
    <td>
      <a href="<c:url value="/ViewEditNews.do?id=${listElement.id}"/>"><c:out value="${listElement.title}"/></a></td>
    <td class="newsdate"><c:out value="${listElement.creation_date}"/></td>
  </tr>
  <tr class="newsdes">
    <td colspan="2"><c:out value="${listElement.description}"/></td>
  </tr>
  <tr>
    <td colspan="2">
      <a href="${listElement.link}"><c:out value="${listElement.link}"/></a></td>
  </tr>
  <tr class="newsbottom">
  </tr>
</table><br /> 
</c:forEach>
<div>
  <ul id="pageList">
		<c:forEach var = "listElement" items = "${requestScope.newsPage}" varStatus="counter">
			<li>
				<a href="<c:url value="/ShowNews.do?page=${counter.count}"/>">${counter.count}</a>
			</li>
		</c:forEach>  
	</ul>
</div>


